import request from '@/utils/request'

// 查询更新日志列表
export function listChangelog(query) {
  return request({
    url: '/system/changelog/list',
    method: 'get',
    params: query
  })
}

// 查询更新日志详细
export function getChangelog(id) {
  return request({
    url: '/system/changelog/' + id,
    method: 'get'
  })
}

// 新增更新日志
export function addChangelog(data) {
  return request({
    url: '/system/changelog',
    method: 'post',
    data: data
  })
}

// 修改更新日志
export function updateChangelog(data) {
  return request({
    url: '/system/changelog',
    method: 'put',
    data: data
  })
}

// 删除更新日志
export function delChangelog(id) {
  return request({
    url: '/system/changelog/' + id,
    method: 'delete'
  })
}
